<div id="wrapper">
<div id="wrapper-btm">
<div id="page">

	<div id="content">
		<div id="banner">&nbsp;</div>

		<h1>Editing dinnermoment</h1>

		<% form_for(@dinnermoment) do |f| %>
		  <%= f.error_messages %>

		  <p>
		    <%= f.label :date %><br />
		    <%= f.date_select :date %>
		  </p>
		  <p>
		    <%= f.label :cost %><br />
		    <%= f.text_field :cost %>
		  </p>
		  <p>
			<%= collection_select(:user, :id, @users, :id, :name, options ={:prompt => "-Select a kook"}, :class =>"payment") %>
		  </p>
		  <p>
		    <%= f.submit "Update" %>
		  </p>
		
		<% end %>
		
		</div>
	</div>
	<div id="sidebar">		

		<%= link_to 'Show', @dinnermoment %> |
		<%= link_to 'Back', dinnermoments_path %>

		</div>
	<div style="clear: both;">&nbsp;</div>
</div>
</div>
</div>